using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using CommonLibrary.Model;

namespace CommonLibrary.BLL
{
    public class Template
    {
        public static bool Exsits(int TempID)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.Exsits(TempID);
        }
        public static bool Insert(TemplateInfo Template)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.Insert(Template);
        }
        public static bool Update(TemplateInfo Template)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.Update(Template);
        }
        public static bool Delete(int TempID)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.Delete(TempID);
        }
        public static TemplateInfo GetTemplate(int TempID)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.GetTemplate(TempID);
        }
        public static List<TemplateInfo> GetList(string StrWhere)
        {
            CommonLibrary.DAL.Template dal = new CommonLibrary.DAL.Template();
            return dal.GetList(StrWhere);
        }
    }
}
